package com.wy.service;

import com.wy.bean.Doctor;
import com.wy.bean.Keshi;
import com.wy.bean.Order;
import com.wy.bean.User;
import com.wy.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class UserServicelmpl implements UserService{
    @Resource
    private UserDao userDao;
    @Override
    public List<User> loginlist(User user) {
        return userDao.loginlist(user);
    }

    @Override
    public List<Keshi> list() {
        return userDao.list();
    }
    @Override
    public void insert(User user) {
        userDao.insert(user);
    }

    @Override
    public List<Doctor> getDoctorlist(String kid) {
        return userDao.getDoctorlist(kid);
    }

    @Override
    public void insertbth(Order order) {
        userDao.insertbth(order);
    }

    @Override
    public List<Order> getOrderlist(String uid) {
        return userDao.getOrderlist(uid);
    }
}
